import { loadingMask } from 'app/components/loadmask';
import { MessageBoxService, MessageResult } from './../../components/messageBox';
import { AppStore } from './../../services/appStore';
import { NavigateService } from './../../services/navigate';
import { Component, Directive, ElementRef, OnInit } from '@angular/core';



@Component({
    styleUrls: ['./initialization.scss'],
    template: `
        <div class="welcome-container">
            <header>
                <figure>
                    <h1>欢迎 ！</h1>
                    <hr>
                    <p>初次使用，请根据设置向导配置厨房显示终端。</p>
                </figure>
            </header>
            <button (click)="nav()" >好的</button>  
        </div>

    `,
    providers: []
})

export class Welcome implements OnInit {
    constructor(
        private appStore: AppStore,
        private navSvr: NavigateService
    ) {

    }
    async nav() {
        this.appStore.systemStore.actions.setAdsAbout();
        this.navSvr.navigate(["initialization/connectLDC"])

    }

    async ngOnInit() {
        // 
    }
}